<!DOCTYPE html>
<html lang="en">
<head>
    <include file="Public:header2" />
    <script type="text/javascript" src="__PUBLIC__/layer/layer.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Home/js/jquery.cookies.2.2.0.js"></script>
</head>
<body class="blackbg">
    <div id="container" class="logbg">


        <div class="log_title">
            <span class="back"><a href="javascript:history.go(-1)"></a></span>
            {:L('支付宝转账')}
        </div>


        <div class="chgntb">
            <div class="chgntb_top">
                <img src="__PUBLIC__/Mobile/images/notice.png">
                <p>{:L('请使用支付宝转账至以下账号')}</p>
            </div>
            <div class="chgntb_bot">
                <table>
                    <tr>
                        <td class="tdleft">{:L('官方账号')}</td>
                        <td class="tdright">{$myczType.username}</td>
                    </tr>
                    <tr>
                        <td class="tdleft">{:L('开户名称')}</td>
                        <td class="tdright">{$myczType.truename}</td>
                    </tr>
                    <tr>
                        <td class="tdleft">{:L('开户地址')}</td>
                        <td class="tdright">{$myczType.kaihu}</td>
                    </tr>
                    <tr>
                        <td class="tdleft">{:L('充值金额')}</td>
                        <td class="tdright"><span class="red">{$mycz.num}</span></td>
                    </tr>
                    <tr>
                        <td class="tdleft">{:L('订单编号')}</td>
                        <td class="tdright"><span class="red">{$mycz.tradeno}</span></td>
                    </tr>
                    <tr>
                        <td class="tdleft">{:L('状态')}</td>
                        <td class="tdright">
                        	（<eq name="mycz.status" value="0">
            					{:L('未付款')}
            					<!-- <a onclick="myczHuikuan({$mycz['id']})" href="javascript:void(0)" style="    color: #2674FF!important;">已汇款</a> -->
        					</eq>
                            <eq name="mycz.status" value="1">
                                {:L('充值成功')}
                            </eq>
                            <eq name="mycz.status" value="2">
                                {:L('人工到账')}
                            </eq>
                            <eq name="mycz.status" value="3">
                                {:L('处理中')}
                            </eq>）
                        </td>
                    </tr>
                </table>
            </div>

            <div class="chgntb_top" style="line-height: 15px;text-align: left;">
                    
                    {:L('请在汇款［备注/附言］中')}<br/>
                    {:L('严格按要求填写充值订单编号：')}<b style="color:white">{$mycz.tradeno}</b><br/>
                    {:L('转账金额请严格按照实付金额，精确到小数点后两位')}<br/>
                    {:L('我们会在收到汇款后30分钟内为您入账，在此期间无需联系客服，如有问题我们会主动联系您。')}
                </p>
            </div>
            <eq name="mycz.status" value="0">
            <div class="logbot">
            <input type="button" class="logbut" value="{:L('已汇款')}" onclick="myczHuikuan({$mycz['id']})">
            </div>
            </eq>
            
        </div>

        <include file="Public:footer" />
    </div>
    <script>
        function myczHuikuan(id) {
			$.post("{:U('Finance/myczHuikuan')}", {id: id}, function (data) {
				if (data.status == 1) {
					layer.msg(data.info, {icon: 1});
					window.location.reload();
				} else {
					layer.msg(data.info, {icon: 2});
				}
			}, "json");
		}
    </script>
</body>
</html>